package com.api.client.impl;

import java.io.InputStream;

import com.api.client.model.ApiResponse;

public class ApiResponseImpl implements ApiResponse {

	private final String method;

	private final String url;

	private final int code;

	private final String body;

	private final InputStream content;

	public ApiResponseImpl(String method, String url, int code, String body, InputStream content) {
		this.method = method;
		this.url = url;
		this.code = code;
		this.body = body;
		this.content = content;
	}

	@Override
	public String getMethod() {
		return method;
	}

	@Override
	public String getUrl() {
		return url;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getBody() {
		return body;
	}

	@Override
	public InputStream getContent() {
		return content;
	}
}
